﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MacKayit.ascx.cs" Inherits="HPDMAS.UserControls.MacKayit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="form-actions">
    <table>
        <tr>
            <td colspan="3">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label runat="server" Text="Maç Ekle" ID="lblMacKaydetText" Style="font-size: large;
                    font-weight: bold"></asp:Label><br />
                <hr />
            </td>
        </tr>
        <tr>
            <td align="right">
                Maçın Oynanacağı İlçe :
            </td>
            <td>
                <asp:DropDownList ID="ddlIlce" runat="server" Width="155px" AppendDataBoundItems="True"
                    AutoPostBack="true" OnSelectedIndexChanged="ddlIlce_SelectedIndexChanged">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                Maçın Oynanacağı Stat :
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlStat" runat="server" AppendDataBoundItems="True">
                            <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                        </asp:DropDownList>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlIlce" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Devre :
            </td>
            <td>
                <asp:RadioButtonList ID="rblDevre" runat="server" RepeatDirection="Horizontal" AutoPostBack="false"
                    CellPadding="2" CellSpacing="2" RepeatColumns="2" Width="80px">
                    <asp:ListItem Text="1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="2" Value="2"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="rblDevre"
                    ErrorMessage="Devre seçiniz." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Lig :
            </td>
            <td>
                <asp:DropDownList ID="ddlLig" runat="server" Width="155px" AppendDataBoundItems="True"
                    AutoPostBack="true" onselectedindexchanged="ddlLig_SelectedIndexChanged">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Grup :
            </td>
            <td>
                <asp:DropDownList ID="ddlGrup" runat="server" Width="155px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Ev Sahibi Takım :
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlEvSahibiTakim" runat="server">
                            <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                        </asp:DropDownList>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlLig" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Misafir Takım :
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlMisafirTakim" runat="server">
                            <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                        </asp:DropDownList>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlLig" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Maç Kodu :
            </td>
            <td>
                <asp:TextBox ID="txtMacKodu" runat="server" Width="145px"></asp:TextBox>
                <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender1" TargetControlID="txtMacKodu"
                    Mask="99-9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left" DisplayMoney="Left"
                    ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMacKodu"
                    ErrorMessage="Maç Kodu boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Maç Saha Tipi :
            </td>
            <td>
                <asp:DropDownList ID="ddlMacSahaTipi" runat="server" Width="155px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right">
                Maç Tarihi :
            </td>
            <td>
                <asp:TextBox ID="txtMacTarihi" runat="server" Width="145px"></asp:TextBox>
                <asp:ImageButton ID="ImageCalendar2" runat="server" ImageUrl="~/images/calendar.png"
                    CausesValidation="False" Width="16px" Height="16px" />
                <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtMacTarihi"
                    Format="dd-MM-yyyy" PopupButtonID="ImageCalendar2">
                </asp:CalendarExtender>
                <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender2" TargetControlID="txtMacTarihi"
                    Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
                    OnInvalidCssClass="MaskedEditError" MaskType="None" InputDirection="LeftToRight"
                    AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMacTarihi"
                    ErrorMessage="Maç Tarihi boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Maç Saati :
            </td>
            <td>
                <asp:TextBox ID="txtMacSaati" runat="server" Width="145px"></asp:TextBox>
                <asp:MaskedEditExtender runat="server" ID="MaskedEditExtender3" TargetControlID="txtMacSaati"
                    Mask="99:99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                    MaskType="Time" InputDirection="LeftToRight" AcceptNegative="Left" DisplayMoney="Left"
                    ErrorTooltipEnabled="True" ClearMaskOnLostFocus="False" />
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtMacSaati"
                    ErrorMessage="Maç Saati boş geçilemez." ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                Hafta :
            </td>
            <td>
                <asp:DropDownList ID="ddlHafta" runat="server" Width="155px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Seciniz</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="tdKayit">
            </td>
            <td>
                <asp:Button ID="btnMacEkle" runat="server" Text="Ekle" CssClass="btn btn-danger"
                    OnClick="btnMacEkle_Click" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td colspan="3">
            </td>
        </tr>
        <tr>
            <td class="tdKayit">
            </td>
            <td>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</div>
